]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionDownloader: Fix check for updates with several extensions
authorJeremias Ortega <jeremias@ortega.tech>
Tue, 14 Jul 2020 04:38:25 +0000 (22:38 -0600)
committerJeremias Ortega <jeremias@ortega.tech>
Thu, 16 Jul 2020 00:26:11 +0000 (18:26 -0600)
When having several extensions installed checking for updates fails.
This is because we are using GET and query params and since we are
sending all the metadata of the extension the server returns 502
when the URL is too long. This error code is ignored safely.

It is only needed to send the version of the extension to check if it
has updates.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2962
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1363

js/ui/extensionDownloader.js

index 90fc5a6161faef1341dbb75228afea0754fb5148..a7b40f9735fcd2e6c2498c83f2ddd1fe4e0271cf 100644 (file)
@@ -139,7 +139,9 @@ function checkForUpdates() {
             return;
         if (extension.hasUpdate)
             return;
-        metadatas[uuid] = extension.metadata;
+        metadatas[uuid] = {
+            version: extension.metadata.version,
+        };
     });
 
     if (Object.keys(metadatas).length === 0)